package myJlite.advice;

import jvlite.aop.TransactionAdvice;
import jvlite.mvc.annotaion.Part;

@Part
public class ExamAdvice extends TransactionAdvice {
	@Override
	public void beforeMethod(Object method) {
		System.out.println("ExamAdvice run before " + method + " advice ");
	}

	@Override
	public void afterMethod(Object method) {
		System.out.println("ExamAdvice run after " + method + " advice ");
	}

	@Override
	public void whenException(Exception e) {
		System.out.println("ExamAdvice exception " + e.getMessage());
	}
}
